import request from '@/utils/request'

export function list(data) {
	const params = new URLSearchParams(data);
	return request({
		url: `sys/sysDict/list?${params.toString()}`,
		method: 'get'
	})
}
export function getById() {
	return request({
		url: 'sys/sysDict/getById',
		method: 'post'
	})
}
export function insert(data) {
	return request({
		url: 'sys/sysDict/insert',
		method: 'post',
		data
	})
}
export function update(data) {
	return request({
		url: 'sys/sysDict/update',
		method: 'post',
		data
	})
}
export function deleteIds(data) {
	return request({
		url: 'sys/sysDict/deleteIds/' + data,
		method: 'post'
	})
}

